<?php

class SavingsTransactions extends HTech_Db_Table
{
    protected $_name    = 'view_savings_transactions';
    protected $_primary = 'SavingsTransactionId';  
  
    protected function _setGridMetadata()
    {
        $this->_gridMetadata['title'] = $this->translate("Savings transactions");
        $this->_gridMetadata['titleMods'] = array('ClientFirstName');
        $this->_gridMetadata['params'] = array('ClientId');
        $this->_gridMetadata['onClick'] = 'savings.savings-transaction.view';
        $this->_gridMetadata['headers'] = array
            (
                array('SavingsTransactionId',  50, $this->translate("Id"),               'Number'),
                array('ClientId',             100, $this->translate("Client Id"),        'Number'),
                array('ClientFullName',       250, $this->translate("Name"),             'String'),
                array('Type',                 200, $this->translate("Type"),             'String'),
                array('Amount',               200, $this->translate("Amount"),           'Number',   'Standard'),
                array('Balance',              200, $this->translate("Balance"),          'Number',   'Standard'),
                array('Date',                 200, $this->translate("Date"),             'String'),
                array('Username',             200, $this->translate("Registered by"),    'String'),
                array('LocationShortName',    200, $this->translate("Branch"),           'String')
            );
        return $this;
    }
}